package com.eminem.service;

import com.eminem.model.Article;
import com.eminem.model.Favorite;

import java.util.List;
import java.util.Map;

public interface ArticleService {

    List<Map<String, Object>> getArticleAll(String userId,Integer currentPage,String name);

    long getArticleCount(String name);

    Map<String, Object> getArticleList(String id);

    boolean AddArticle(Article article);

    List<Map<String, Object>> getCollectionArticle(Integer currentPage,String page,String name);

    long getCollectionCount(String userId,String name);

    boolean CollectionArttcile(String userId, String id);

    boolean DeleteConllctrionArticle(Integer id);

    Favorite ArtucileCollection(String userId, String id);
}
